// Copyright 2022 jeff.li. and/or its affiliates.

#include <tbir/runtime/c_runtime_api.h>
#include <tbir/runtime/cxxabi_helper.h>

extern "C" {
#if defined(__clang__) || (__GNUC__ <= 4) || \
    (defined(_GLIBCXX_USE_CXX11_ABI) && _GLIBCXX_USE_CXX11_ABI == 0)
TURBO_EXPORT int TBIR_FLAGS_GLIBCXX_USE_CXX11_ABI = 0;
#else
TURBO_EXPORT int TBIR_FLAGS_GLIBCXX_USE_CXX11_ABI = 1;
#endif

int TbirAPI_USE_CXX11_ABI() {
    return TBIR_FLAGS_GLIBCXX_USE_CXX11_ABI;
}
}
